package com.commons.tools.callback;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * <p>TestCallback.commit()-->iCommonService.submit()-->ICallback.afterCommit()</p>
 *
 */
public class TestCallback implements ICallback{
    @Autowired
    ICommonService iCommonService;

    void commit() {
        iCommonService.submit();
    }

    @Override
    public void afterCommit() {
        System.out.println("I am called back");
    }
}
